package com.woniu.service;

import com.github.pagehelper.PageInfo;
import com.woniu.entity.FlowerInfo;
import com.woniu.vo.SortProductVo;

import java.util.List;

public interface FlowerInfoService {
    PageInfo<FlowerInfo> findAllFlowerInfo(int pageNum, int pageSize);

    FlowerInfo findFlowerInfoByFlowerInfoName(String flowerInfoName);

    int addFlowerInfo(FlowerInfo flowerInfo);

    List<FlowerInfo> selectFlowerInfoNameTo(String flowerInfoName);

    int editFlowerInfo(FlowerInfo flowerInfo);

    int deleteFlowerInfo(int id);

    List<FlowerInfo> sortFlowerInfoBySearchNameAndSortOrder(SortProductVo sortProductVo);

    List<FlowerInfo> selectFlowerInfoNameToPage(SortProductVo sortProductVo);
}
